import Vue from 'vue'
//导入路由包
import VueRouter from 'vue-router'
Vue.use(VueRouter)

//导入格式化时间插件
import moment from 'moment'
//全局过滤器
Vue.filter('dateFormat',function(dataStr,pattern="YYYY-MM-DD HH:mm:ss"){
    return moment(dataStr).format(pattern)
})

//导入resource
import VueResource from 'vue-resource'
Vue.use(VueResource)



//导入自己的router路由模块
import router from './router.js'

//导入mui样式
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'
//导入app模块
import app from './app.vue'
//导入mintui局部样式表   
// import {
//     Header,
//     Swipe,
//     SwipeItem,
//     Button,
//     Lazyload
// } from 'mint-ui'
// Vue.component(Header.name, Header)
// Vue.component(Swipe.name, Swipe)
// Vue.component(SwipeItem.name, SwipeItem)
// Vue.component(Button.name, Button)
// Vue.use(Lazyload)

//全部导入mintui
import MintUI from 'mint-ui'
Vue.use(MintUI)
import 'mint-ui/lib/style.css'


 

import VuePreview from 'vue-preview'
Vue.use(VuePreview)


var vm = new Vue({
    el: '#app',
    render: c => c(app),
    router
})